package com.origin.multimedia.music.bean

import com.origin.utils.time.TimeUtil
import java.io.Serializable

class MusicInfo : Serializable {
    // 专辑名
    var album: String = ""

    // 歌手名
    var artist: String = ""

    // 歌名
    var songName: String = ""

    // 时长
    var length = 0

    // 保存文件名
    var musicId: String = ""

    // 歌曲地址
    var musicUrl: String = ""

    // 专辑封面
    var albumCover: String = ""

    //歌曲大小
    var size: Long = 0L

    var isNetMusic : Boolean =true

    constructor() {}
    constructor(album: String, artist: String, songName: String, length: Int, saveName: String) {
        this.album = album
        this.artist = artist
        this.songName = songName
        this.length = length
        this.musicId = saveName
    }


    override fun toString(): String {
        return "MusicInfo{" +
                "album='" + album + '\'' +
                ", artist='" + artist + '\'' +
                ", songName='" + songName + '\'' +
                ", length=" + length +
                ", saveName='" + musicId + '\'' +
                ", albumCover='" + albumCover + '\'' +
                ", musicUrl='" + musicUrl + '\'' +
                '}'
    }
}